package com.xtsoft.platform.globe.enums;

/**
 * @Description 企业类型枚举
 * @Param null
 * @return
 * @Author defencez
 * @Date 2024-04-21 13:04
*/
public enum OrganizeType {
	Organize(0),        //企业
	Department(1),      //部门 
	Government(2),      //政府或管理机构
	Reservation(3),     //保留
	Unknown(4),         //未知
	VirtualOrganize(5); //管理组织，仅用于超级用户、角色、系统参数配置
	
	private int intValue;
	
	OrganizeType(int intValue){
		this.intValue = intValue;
	}
	
	
	public int getIntValue() {
		return intValue;
	}

	OrganizeType getEnumValue(int intValue){
		switch (intValue){
			case 0: return OrganizeType.Organize;
			case 1: return OrganizeType.Department;
			case 2: return OrganizeType.Government;
			case 3: return OrganizeType.Reservation;
			case 4: return OrganizeType.Unknown;
			case 5: return OrganizeType.VirtualOrganize;
			default: return null;
		}
	}
}
